from order_form_cx import order_form as cx
from order_form_xr import order_form as xr
import hkzxrqgx
import pymysql  # type:ignore


if __name__ == "__main__":
    mysql_server = {  #!数据库链接配置
        "host": "127.0.0.1",
        "user": "root",
        "passwd": "GZCXSWKJFZYXGS",
        "port": 3306,
        "db": "order_list",
        "cursorclass": pymysql.cursors.DictCursor,
    }
    try:
        db = pymysql.connect(**mysql_server)
        cursor = db.cursor()  #!创建数据游标
        print("mysql连接成功！")
    except Exception as e:
        raise e

    # xr(db=db, cursor=cursor).main()
    cx(db=db, cursor=cursor).main()
    hkzxrqgx.update().main()
    # for i in [,]:
    #     try:
    #         i  # type:ignore
    #     except Exception as e:
    #         print(e)
